package com.itheima;

public class WeatherApp {
    public static void main(String[] args) {
        // 创建 QWeatherClient 对象
        QWeatherClient qWeatherClient = new QWeatherClient();

        try {
            // 获取杭州的天气
            WeatherNow weatherNow = qWeatherClient.getNow("101210101");

            // 打印天气信息
            System.out.println(weatherNow);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}